From 212673e005c29b05652266408b7ae1dc2ccd8848 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Sun, 16 Nov 2008 12:55:17 +0000 Subject: [PATCH] Use the default babl tolerance level if BABL_TOLERANCE is the empty string * babl/babl-fish-path.c: Use the default babl tolerance level if BABL_TOLERANCE is the empty string so that we don't get a tolerance level of 0.0 in that case. svn path=/trunk/; revision=357 --- ChangeLog | 6 ++++++ babl/babl-fish-path.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6a5c6f5..d6ea0b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-11-16 Martin Nordholts + + * babl/babl-fish-path.c: Use the default babl tolerance level if + BABL_TOLERANCE is the empty string so that we don't get a + tolerance level of 0.0 in that case. + 2008-11-16 Martin Nordholts * babl/babl.h: Add #define BABL_ALPHA_THRESHOLD which is the alpha diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c index d2cd4e7..ea6b1ff 100644 --- a/babl/babl-fish-path.c +++ b/babl/babl-fish-path.c @@ -68,7 +68,7 @@ static double legal_error (void) return error; env = getenv ("BABL_TOLERANCE"); - if (env) + if (env && env[0] != '\0') error = atof (env); else error = BABL_LEGAL_ERROR; -- 2.30.2